<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/22
 * Time: 15:49
 */
namespace app\index\controller;
use app\index\model\Manager;
use think\App;
use think\Request;

class Login extends Common
{
    public function __construct(App $app = null, Request $request)
    {
        parent::__construct($app, $request);
    }

    /**
     * 登录
     * @return false|string
     */
    public function login(){
        $param=input('data');
        $param= $this->jiemi($param);
         $login=new \app\index\logic\Login();
        $data=$login->getLogin($param);
        return $this->jiami($data);
    }

    /**
     * 登出
     * @return false|string
     */
    public function loginOut(){
         $login=new \app\index\logic\Login();
        $data=$login->outLogin();
        return $this->jiami($data);
    }

    //测试
    public function jjj(){
        $data=input('param.');
        var_dump($data);
        return $this->jiami($data);
    }
    public function jm(){
        $data=input('data');
        var_dump($data);
        var_dump( $this->jiemi($data));

    }

}

